1,7,14,21,26 * */bin/find-name "core"-exec rm {} \;Now save and exit. It's a good idea to add a comment above each entry in the crontab file so that you know its function, uptime, and more importantly, who knows which user's job.Now let's list all of its information using the CRONTAB-L command we talked about earlier:Copy code code as follows:$ crontab-l# (Crond
Cron mechanism
Cron allows the system to perform a specified work at a specified time, and we can use the CRONTAB directive to manage the cron mechanism
Crontab parameters
-U: This parameter allows us to edit other people's crontab, if not add this parameter, will open their own crontab
resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab command. If you omit any of the options, crontab may open an empty file, or it might look like an empty file. Then hit the delete key to exit, do not press 5. Working with instancesExample 1: command is executed e
# (Crondave installed on Tue 4 13:07:43 1999)# Dt:ech The date to the console every minites0,15,30,45 18-06 * * */bin/echo ' date ' >/dev/tty1# Dt:delete Core Files,at 3.30am on 1,7,14,21,26,26 days of each month3 1,7,14,21,26 * */bin/find-name "core '-exec rm {} \;4). Delete the crontab fileTo delete a crontab file, you can use:$ crontab-r5). Recover the Lost
you do not directly edit the crontab file in some system documents, but edit a copy of the file and resubmit the new file.
Some crontab variants are somewhat weird, so be careful when using the crontab command. If you omit any options, crontab may open an empty file or it l
(because the r key is next to the right of the e key ). This is why it is recommended that you do not directly edit the crontab file in some system documents, but edit a copy of the file and resubmit the new file.
Some crontab variants are somewhat weird, so be careful when using the crontab command. If you omit any op
to a permissions issue, you can use: $ crontabamong them,is the file name of the copy you have in the $ H O M e directory. I recommend that you save a copy of the file in your own $ H O M directory. I have had a similar experience, several times accidentally deleted the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab
backup in your own $ H O M directory, you can copy it to/var/spool/cron/
$ crontab
Where,
I suggest that you save a copy of the file in your own $ H O M e directory. I have had a similar experience, several times mistakenly deleted the crontab file (because the R key is close to the right of the E key). This is why some system documents do not recommend editing the
accidentally deleted the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the
accidentally deleted the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the
deleted the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab
the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab co
/tty1 # dt:delete Core Files,at3.30am on1,7, -, +, -, -Days of each month - 3 1,7, -, +, -* */bin/find-name"Core '-exec rm {} \;4). Delete the crontab fileTo delete a crontab file, you can use:$ crontab-r5). Recover the Lost crontab fileIf you accidentally delete the crontab
the crontab file (because the R key is close to the E key to the right). This is why some system documentation does not recommend editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab co
editing the crontab file directly, but instead edits a copy of the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab command. If you omit any of the options, crontab may open an empty file, or it might lo
installed on Tue 4 13:07:43 1999)# Dt:ech The date to the console every minites0,15,30,45 18-06 * * */bin/echo ' date ' >/dev/tty1# Dt:delete Core Files,at 3.30am on 1,7,14,21,26,26 days of each month3 1,7,14,21,26 * */bin/find-name "core '-exec rm {} \;4). Delete the crontab fileTo delete a crontab file, you can use:$ crontab-r5). Recover the Lost
:$ crontabAmong them, is the file name of your copy in the $ H O M e directory.I suggest that you save a copy of the file in your own $ H O M e directory. I have had a similar experience, several times mistakenly deleted the crontab file (because the R key is close to the right of the E key). This is why some system documents do not recommend editing the crontab file directly, but instead edit a copy of the
the file and then resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab command. If you omit any of the options, crontab may open an empty file, or it might look like an empty file. Then hit the delete key to exit, do not press 5. Working with instances Instance 1:
resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab command. If you omit any of the options, crontab may open an empty file, or it might look like an empty file. Then hit the delete key to exit, do not press 5. Working with instancesExample 1: command is executed e
resubmit the new file.Some variants of crontab are somewhat bizarre, so be careful when using the crontab command. If you omit any of the options, crontab may open an empty file, or it might look like an empty file. Then hit the delete key to exit, do not press 5. Working with instancesExample 1: command is executed e
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.